package cn.tedu.kcircle.content.admin.adapter.converter;

import cn.tedu.dto.ContentUpdateCheckStateDTO;
import cn.tedu.kcircle.content.admin.repository.model.ContentUpdateCheckStateModel;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Component;

@Component
public class ContentConverter {
    public ContentUpdateCheckStateModel dto2Model(ContentUpdateCheckStateDTO contentUpdateCheckStateDTO){
        ContentUpdateCheckStateModel contentUpdateCheckStateModel = new ContentUpdateCheckStateModel();
        BeanUtils.copyProperties(contentUpdateCheckStateDTO,contentUpdateCheckStateModel);
        return contentUpdateCheckStateModel;
    }
}
